from java.io import *
from java.net import *
from java.lang import *
from net.omnivention.proxy import *

s = Socket("us.ebayobjects.com",80)
#s = Socket("www.omnivention.net",80)
output = s.outputStream

r = "GET /1a/ebay.us.test/test;sz=1x1;ord=123456789 HTTP/1.0\r\n"
r+= "Host: us.ebayobjects.com\r\n"

req = String(r)

output.write(req.getBytes())
output.flush()

input = s.inputStream
reader = BufferedReader(InputStreamReader(input))
reader.readLine()

#IOUtility.readLine(input)
    
#input.mark(1)
